from django.db import models

# Create your models here.

class yiShengUser(models.Model):
    username = models.CharField(verbose_name='用户名', null=False, blank=False, max_length=11, unique=True)
    password = models.CharField(verbose_name='密码', null=False, blank=False, max_length=255)
    company_name = models.CharField(verbose_name='公司名', null=True, blank=True, max_length=255)

    class Meta:
        db_table = 'yisheng_user'
        verbose_name = '易数宝用户信息'
        verbose_name_plural = verbose_name

    def __str__(self):
        return self.username
